//
//  ReplacePhoneViewController.m
//  SchoolProduct
//
//  Created by 蒋松涵 on 16/9/8.
//  Copyright © 2016年 sm. All rights reserved.
//

#import "ReplacePhoneViewController.h"

@interface ReplacePhoneViewController ()

@end

@implementation ReplacePhoneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor colorWithRed:232/255.0 green:234/255.0 blue:233/255.0 alpha:1];
    
    self.title = @"输入新号码";
    [self init_Tu];
    
    UILabel * phone = [[UILabel alloc]initWithFrame:CGRectMake(40, 260, 120, 30)];
    phone.text = @"你的手机号:";
    [self.view addSubview:phone];
    
    UILabel * phoneLabel = [[UILabel alloc]initWithFrame:CGRectMake(170, 260, 120, 30)];
    phoneLabel.text = @"158XXXXXXXX";
    [self.view addSubview:phoneLabel];
    
    UIButton * Button = [UIButton buttonWithType:UIButtonTypeCustom];
    Button.frame = CGRectMake(10, 310, ScreenWidth/2, 40);
    Button.backgroundColor = [UIColor orangeColor];
    [Button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [Button setTitle:@"更换手机号" forState:UIControlStateNormal];
    [Button addTarget:self action:@selector(buttonClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:Button];
}

#pragma mark - 图片
-(void)init_Tu
{
    UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectMake(ScreenWidth - 250, 100, 80, 150)];
    imageView.image = [UIImage imageNamed:@"手机邮箱图标-01.png"];
    [self.view addSubview:imageView];
}


-(void)buttonClick
{
    NSLog(@"更换手机号");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
